File: upcfg.test

package info (click to toggle)
lepton-eda 1.9.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 41,024 kB
  • sloc: ansic: 66,688; lisp: 29,508; sh: 6,792; makefile: 3,111; perl: 1,404; pascal: 1,161; lex: 887; sed: 16; cpp: 8
file content (49 lines) | stat: -rw-r--r-- 1,320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(use-modules (ice-9 receive))

(load-from-path "env.scm")

(define help-string "Usage: lepton-upcfg [OPTIONS] | FILE")


(test-begin "lepton-upcfg -h")

(receive (<status> <stdout> <stderr>)
    (command-values lepton-upcfg "-h")
  (test-eq EXIT_SUCCESS <status>)
  (test-assert (string-contains <stdout> help-string)))

(test-end "lepton-upcfg -h")


(test-begin "lepton-upcfg --help")

(receive (<status> <stdout> <stderr>)
    (command-values lepton-upcfg "--help")
  (test-eq EXIT_SUCCESS <status>)
  (test-assert (string-contains <stdout> help-string)))

(test-end "lepton-upcfg --help")


(test-begin "lepton-upcfg -V")

(receive (<status> <stdout> <stderr>)
    (command-values lepton-upcfg "-V")
  (test-eq EXIT_SUCCESS <status>)
  (test-assert (string-contains <stdout> "Lepton EDA"))
  (test-assert (string-contains <stdout> "Copyright"))
  (test-assert (string-contains <stdout> "There is NO WARRANTY")))

(test-end "lepton-upcfg -V")


(test-begin "lepton-upcfg --version")

(receive (<status> <stdout> <stderr>)
    (command-values lepton-upcfg "--version")
  (test-eq EXIT_SUCCESS <status>)
  (test-assert (string-contains <stdout> "Lepton EDA"))
  (test-assert (string-contains <stdout> "Copyright"))
  (test-assert (string-contains <stdout> "There is NO WARRANTY")))

(test-end "lepton-upcfg --version")