Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
Commits
1e8cb5c7
Commit
1e8cb5c7
authored
Aug 24, 2018
by
Lorenzo Martinico
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test wallpapers presence
parent
6b85e9b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
software/nayuos/scripts/test_nayuos_image
software/nayuos/scripts/test_nayuos_image
+11
-0
No files found.
software/nayuos/scripts/test_nayuos_image
View file @
1e8cb5c7
...
...
@@ -13,6 +13,7 @@ MOUNTPOINT="/tmp/${BOARD}"
INIT_SSH_SERVER
=
"etc/init/openssh-server.conf"
BASHRC
=
"etc/skel/.bashrc"
CHROMIUM_POLICY
=
"etc/chromium/policies/recommended/nayuos_policy.json"
NAYUOS_WALLPAPER
=
"usr/share/chromeos-assets/wallpaper"
HAS_FAILED
=
0
...
...
@@ -35,6 +36,7 @@ echo $(ls "${MOUNTPOINT}/usr/local")
if
[[
$(
ls
"
${
MOUNTPOINT
}
/usr/local"
)
]]
;
then
opensshd_config
=
$(
ls
"
${
MOUNTPOINT
}
/
${
INIT_SSH_SERVER
}
"
)
chromium_policy
=
$(
ls
"
${
MOUNTPOINT
}
/
${
CHROMIUM_POLICY
}
"
)
nayuos_wallpaper
=
$(
ls
"
${
MOUNTPOINT
}
/
${
NAYUOS_WALLPAPER
}
"
)
else
is_empty
=
1
fi
...
...
@@ -64,6 +66,15 @@ else
else
print_result
${
FAILURE
}
"Expected Chromium policies file not in
${
MOUNTPOINT
}
/
${
CHROMIUM_POLICY
}
."
fi
echo
"* test if NayuOS wallpapers are installed"
if
[[
${
nayuos_wallpaper
}
]]
;
then
print_result
${
SUCCESS
}
"NayuOS wallpapers are installed."
else
print_result
${
FAILURE
}
"Expected NayuOS wallpapers not in
${
MOUNTPOINT
}
/
${
NAYUOS_WALLPAPER
}
."
fi
fi
exit
${
HAS_FAILED
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment