Skip to content

Commit 69aa84b

Browse files
committed
shelltest
1 parent 322f8a6 commit 69aa84b

File tree

11 files changed

+30
-20
lines changed

11 files changed

+30
-20
lines changed

functional/configuration/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void CleanupOtel()
211211
static void usage(FILE *out)
212212
{
213213
static const char *msg =
214-
"Usage: example_yaml [options]\n"
214+
"Usage: otel_configuration_check [options]\n"
215215
"Valid options are:\n"
216216
" --help Print this help\n"
217217
" --yaml Path to a yaml configuration file\n"

functional/configuration/run_test.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,5 @@ export TEST_BIN_DIR="${BUILD_DIR}/functional/configuration/"
1515

1616
export PATH=${PATH}:${TEST_BIN_DIR}
1717

18-
which otel_configuration_check
19-
20-
# otel_configuration_check --help
21-
22-
which shelltest || true
23-
24-
shelltest --version || true
25-
26-
shelltest --help || true
27-
2818
shelltest ./shelltests
2919

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
otel_configuration_check --yaml shelltests/disabled_empty.yaml
4+
$ otel_configuration_check --yaml shelltests/disabled_empty.yaml
5+
>
6+
MODEL PARSED
7+
SDK CREATED
8+
>= 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
format: 0.0
4+
file_format: 0.0
55
disabled:
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
otel_configuration_check --yaml shelltests/disabled_false.yaml
4+
$ otel_configuration_check --yaml shelltests/disabled_false.yaml
5+
>
6+
MODEL PARSED
7+
SDK CREATED
8+
>= 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
format: 0.0
4+
file_format: 0.0
55
disabled: false
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
otel_configuration_check --yaml shelltests/disabled_true.yaml
4+
$ otel_configuration_check --yaml shelltests/disabled_true.yaml
5+
>
6+
MODEL PARSED
7+
SDK CREATED
8+
>= 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
format: 0.0
4+
file_format: 0.0
55
disabled: true
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
otel_configuration_check --yaml shelltests/empty.yaml
4+
$ otel_configuration_check --yaml shelltests/empty.yaml
5+
>
6+
[ERROR] [Yaml Configuration Parser] Parse failed with exception: Yaml: not a map, looking for: file_format
7+
FAILED TO PARSE MODEL
8+
>= 1
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Copyright The OpenTelemetry Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4-
otel_configuration_check --yaml shelltests/format_empty.yaml
4+
$ otel_configuration_check --yaml shelltests/format_empty.yaml
5+
>
6+
[ERROR] [Yaml Configuration Parser] Parse failed with exception: Yaml: string value is empty: file_format
7+
FAILED TO PARSE MODEL
8+
>= 1

0 commit comments

Comments
 (0)