Define a set of common SQL tests that all driver specific directories links to.
[freeradius.git] / src / tests / modules / sql_postgresql / acct_2_stop.unlang
deleted file mode 100644 (file)
index 44e30c25e7008a48698d31852b1bd8b844edb5e6..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-#  PRE: acct_1_update
-#
-sql.accounting
-if (ok) {
-       test_pass
-}
-else {
-       test_fail
-}
-
-update {
-       Tmp-Integer-0 := "%{sql:SELECT count(*) FROM radacct WHERE AcctSessionId = '00000000'}"
-}
-if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 1)) {
-       test_fail
-}
-else {
-       test_pass
-}
-
-update {
-       Tmp-Integer-0 := "%{sql:SELECT acctsessiontime FROM radacct WHERE AcctSessionId = '00000000'}"
-}
-if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 120)) {
-       test_fail
-}
-else {
-       test_pass
-}
-
-update {
-       Tmp-String-0 := "%{sql:SELECT AcctTerminateCause FROM radacct WHERE AcctSessionId = '00000000'}"
-}
-if (!&Tmp-String-0 || (&Tmp-String-0 != 'User-Request')) {
-       test_fail
-}
-else {
-       test_pass
-}
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..ea0be5693c6264bd409dcb74c96e583bb79582fa
--- /dev/null
@@ -0,0 +1 @@
+../sql/acct_2_stop.unlang
\ No newline at end of file