Added docs and test shell scripts.
This commit is contained in:
parent
4eb53bb5f7
commit
6ad6a84346
2 changed files with 23 additions and 0 deletions
2
docs.sh
Executable file
2
docs.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
dartdoc
|
||||
open doc/api/index.html 2> /dev/null
|
21
test.sh
Executable file
21
test.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
TMPCAT=/tmp/tmp-cat
|
||||
TMPDCAT=/tmp/tmp-dcat
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
|
||||
for o in -A -b -e -E -n -s -t -T -v
|
||||
do
|
||||
cat $o test/* > $TMPCAT
|
||||
bin/dcat $o test/* > $TMPDCAT
|
||||
if ! $(diff -q $TMPCAT $TMPDCAT);
|
||||
then
|
||||
echo -e "${RED}Test failed: $o" >&2
|
||||
exit
|
||||
fi
|
||||
done
|
||||
|
||||
rm -rf $TMPCAT $TMPDCAT
|
||||
|
||||
echo -e "${GREEN}All tests passed."
|
Loading…
Add table
Add a link
Reference in a new issue