File: t-actionscript.sh

package info (click to toggle)
graudit 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: sh: 1,134; makefile: 82; php: 62; jsp: 24
file content (16 lines) | stat: -rwxr-xr-x 770 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Testing actionscript signatures and invocation

test_description='Actionscript signature database tests'
. ./test-lib.sh

# Test setup
# Nothing to setup

# Tests
test_expect_code 1 'Actionscript signature syntax test' '../graudit -d ../signatures/actionscript.db anotherfile'
test_expect_code 1 'Actionscript context argument' '../graudit -c 5 -d ../signatures/actionscript.db anotherfile'
test_expect_code 1 'Actionscript no color test' '../graudit -z -d ../signatures/actionscript.db anotherfile'
test_expect_code 2 'Actionscript no such file test' '../graudit -d ../signatures/actionscript.db nosuchfile'
test_expect_success 'Actionscript broken rules test' 'test $(../graudit -B -z -d ../signatures/actionscript.db nomatch.txt | wc -l) -eq 0'
test_done