opnsense-src/test/TestRunner.sh

14 lines
279 B
Bash
Raw Normal View History

2009-06-02 13:58:47 -04:00
#!/bin/sh
#
2009-10-14 14:03:49 -04:00
# TestRunner.sh - Backward compatible utility for testing an individual file.
2009-06-02 13:58:47 -04:00
2009-10-14 14:03:49 -04:00
# Find where this script is.
Dir=$(dirname $(which $0))
AbsDir=$(cd $Dir; pwd)
2009-06-02 13:58:47 -04:00
2009-10-14 14:03:49 -04:00
# Find 'lit', assuming standard layout.
lit=$AbsDir/../../../utils/lit/lit.py
2009-06-02 13:58:47 -04:00
2009-10-14 14:03:49 -04:00
# Dispatch to lit.
$lit "$@"