xref: /linux/tools/verification/rvgen/tests/rvgen_container.t (revision 55ee4b931a7ffedc886175d265dd6e6d08fd4151)
1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3source ../tests/engine.sh
4test_begin
5
6set_timeout 30s
7
8# Help tests
9check "verify container subcommand help" \
10	"$RVGEN container -h" 0 "model_name" "class"
11
12check_and_compare_folder "container with description" \
13	"$RVGEN container -n test_container -D 'Test container for grouping monitors'" \
14	"test_container" "Writing the monitor into the directory test_container"
15
16# Error handling tests
17check "missing required model_name" \
18	"$RVGEN container" 2 "the following arguments are required: -n/--model_name"
19
20test_end
21