File: test29.1

package info (click to toggle)
slurm-wlm 22.05.8-4%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 48,492 kB
  • sloc: ansic: 475,246; exp: 69,020; sh: 8,862; javascript: 6,528; python: 6,444; makefile: 4,185; perl: 4,069; pascal: 131
file content (40 lines) | stat: -rwxr-xr-x 909 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
#!/usr/bin/env expect
############################################################################
# Purpose: Test of Slurm functionality
#          validate smd usage command.
############################################################################
# Copyright (C) 2011-2014 SchedMD LLC
# Written by Nathan Yee <nyee32@schedmd.com>
# All rights reserved
############################################################################
source ./globals

if {![param_contains [get_config_param "SlurmctldPlugstack"] "nonstop"]} {
	skip "This test is only compatible when SlurmctldPlugstack includes nonstop"
}

#
# Test the smd usage format
#
set match 0
spawn $smd --usage
expect {
	-re "Usage: smd" {
		incr match
		exp_continue
	}
	-re "options:" {
		incr match
		exp_continue
	}
	timeout {
		fail "smd is not responding"
	}
	eof {
		wait
	}

}
if {$match != 2} {
	fail "smd --usage failed ($match != 2)"
}