cicd tests
This commit is contained in:
parent
7350ec1624
commit
51e17671a8
3 changed files with 15 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# ***** BEGIN LICENSE BLOCK *****
|
# ***** BEGIN LICENSE BLOCK *****
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2020 Olof Hagsand
|
# Copyright (C) 2009-2020 Olof Hagsand
|
||||||
1#
|
#
|
||||||
# This file is part of CLIXON
|
# This file is part of CLIXON
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|
@ -39,10 +39,13 @@ SHELL = /bin/sh
|
||||||
|
|
||||||
.PHONY: all clean distclean depend install uninstall
|
.PHONY: all clean distclean depend install uninstall
|
||||||
|
|
||||||
HOSTS = vandal.hagsand.com # i86_32 ubuntu
|
|
||||||
HOSTS += clixon.dogwood.com # FreeBSD x86_64
|
HOSTS=
|
||||||
#HOSTS += nuc1.hagsand.com # x86_64 ubuntu
|
# The "hosts" file must exist and define the HOSTS variable
|
||||||
#HOSTS += pi2.hagsand.com # arm Raspian
|
# eg :
|
||||||
|
# HOSTS += vandal.hagsand.com # i86_32 ubuntu
|
||||||
|
# ...
|
||||||
|
-include hosts
|
||||||
|
|
||||||
SCRIPTS = cligen-mk.sh
|
SCRIPTS = cligen-mk.sh
|
||||||
SCRIPTS += clixon-mk.sh
|
SCRIPTS += clixon-mk.sh
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@ concurrency - non-trivial with bash, eg with `make -j 10`
|
||||||
|
|
||||||
Note there are other cicd scripts than this, such as the the "travis" scrips.
|
Note there are other cicd scripts than this, such as the the "travis" scrips.
|
||||||
|
|
||||||
The Makefile contains a configurable HOSTS variable, please edit.
|
The Makefile contains a configurable HOSTS variable, which ius defined
|
||||||
|
in a "hosts" file. You must add such a file, eg:
|
||||||
|
```
|
||||||
|
HOSTS += vandal.hagsand.com # i86_32 ubuntu
|
||||||
|
```
|
||||||
|
|
||||||
Logs appear in : <hostname>.log.
|
Logs appear in : <hostname>.log.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Advanced API XML test. Compile a backend plugin and start the backend, and then send an RPC to
|
# Advanced API XML test. Compile a backend plugin and start the backend, and then send an RPC to
|
||||||
# trigger that plugin
|
# trigger that plugin
|
||||||
# The plugin looks in an XML tree using three different methods:
|
# The plugin looks in an XML tree using three different methods:
|
||||||
|
|
@ -209,7 +209,7 @@ clixon_plugin_init(clicon_handle h)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
new "compile $cfile"
|
new "compile $cfile"
|
||||||
gcc -g -Wall -rdynamic -fPIC -shared $cfile -o $sofile
|
cc -g -Wall -rdynamic -fPIC -shared $cfile -o $sofile
|
||||||
|
|
||||||
new "test params: -s running -f $cfg"
|
new "test params: -s running -f $cfg"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue