Add config command line tools and simplify source code structure (#81)
* Add simplified shell script * Update stop command * Update defaults.conf * Add help dialog * Simplify file checkpoint * Improve tests * Remove old library files * Update install log * Bump to version 1.2.0 * Apply clang format * Add command line tools for configurations * Bugfix keyswipe gesture not passing test * Reformat files with clang and prettier * Update dispatch script * Add abort statuement * Improve command line * Add --bare flag * Apply clang-format * Update README * Add to CHANGELOG for v1.2.0
This commit is contained in:
1 parent
d8788782a8
commit
66b2568c86
46 files changed
+2081
-2139
No files matched your search
+10
-6
@@ -3,9 +3,10 @@
|
||||
set -e
|
||||
|
||||
DIR="$(dirname "$0")"
|
||||
COMPILER="$(dirname "$DIR")/compile"
|
||||
|
||||
# just call abort on error
|
||||
tempout="$(mktemp)"
|
||||
TEMPOUT="$(mktemp)"
|
||||
abort () {
|
||||
rm "$tempout"
|
||||
echo "Test aborted"
|
||||
@@ -13,12 +14,15 @@ abort () {
|
||||
}
|
||||
|
||||
# run all shell files in this directory
|
||||
for sh in "$DIR/test_"*.sh; do
|
||||
/bin/bash "$sh" || abort
|
||||
for SH in "$DIR/test_"*.sh; do
|
||||
"$SH" || abort
|
||||
done
|
||||
|
||||
# run all cpp files in this directory
|
||||
for cpp in "$DIR/test_"*.cpp; do
|
||||
g++ -std=c++11 -O2 "$cpp" -lxdo -o "$tempout" || abort
|
||||
"$tempout" || abort
|
||||
for CPP in "$DIR/test_"*.cpp; do
|
||||
# compile the test
|
||||
"$COMPILER" "$CPP" -o "$TEMPOUT" || abort
|
||||
# run the test
|
||||
chmod +x "$TEMPOUT"
|
||||
"$TEMPOUT"
|
||||
done
|
||||
Reference in new issue
Block a user