Add test case "CSS"
This commit adds a test case to test for the existence of the website's CSS in the correct locations.
This commit is contained in:
parent
c98fd4c4c3
commit
57da31d8ce
31
test/css.sh
Executable file
31
test/css.sh
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
|
||||||
|
# Inferencium - Website - Test - CSS
|
||||||
|
# Copyright 2024 Jake Winters
|
||||||
|
|
||||||
|
# Version: 0.1.0
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
|
||||||
|
|
||||||
|
# Location
|
||||||
|
root=".." # Website root directory
|
||||||
|
|
||||||
|
# Formatting
|
||||||
|
bold="\033[1m" # Bold
|
||||||
|
ok="\033[0;32;1mOK\033[0m" # Green + Bold
|
||||||
|
fail="\033[0;31;1mFAIL\033[0m" # Red + Bold
|
||||||
|
nof="\033[0m" # None
|
||||||
|
|
||||||
|
|
||||||
|
# Check for existence of CSS
|
||||||
|
echo "${bold}Checking for existence of CSS...${nof}"
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "${bold}Root${nof}"
|
||||||
|
|
||||||
|
if [ -f $root/main.css ]; then
|
||||||
|
echo "main.css ${ok}"
|
||||||
|
else
|
||||||
|
echo "main.css ${fail}"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user