Commit 9aacac80 authored by David Dollar's avatar David Dollar

allow files to be asserted after compile

parent b248f3d9
...@@ -66,8 +66,16 @@ detect() { ...@@ -66,8 +66,16 @@ detect() {
capture ${BASE}/bin/detect ${BASE}/test/$1 capture ${BASE}/bin/detect ${BASE}/test/$1
} }
COMPILE_DIR=""
compile() { compile() {
capture ${BASE}/bin/compile ${BASE}/test/$1 $2 COMPILE_DIR=$(mktmpdir)
cp -r ${BASE}/test/$1/* ${COMPILE_DIR}/
capture ${BASE}/bin/compile ${COMPILE_DIR} $2
}
assertFile() {
assertEquals "$1" "$(cat ${COMPILE_DIR}/$2)"
} }
source ${BASE}/vendor/shunit2/shunit2 source ${BASE}/vendor/shunit2/shunit2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment