summaryrefslogtreecommitdiffstats
path: root/src/vlib/unix
AgeCommit message (Expand)AuthorFilesLines
2021-06-13vlib: fix dangling reference in node_by_name hashDave Barach1-1/+4
2021-05-26pg: revert exec file fixesRay Kinsella1-6/+1
2021-05-26vlib: revert exec cmd handle scripts with blank linesRay Kinsella1-21/+3
2021-05-11vlib: exec cmd handle scripts with blank linesDave Barach1-3/+21
2021-04-28pg: exec file fixesmdr781-1/+6
2021-03-26vlib: split vlib_main_t into global and per-threadDamjan Marion1-7/+11
2021-03-26vlib: introduce vlib_get_elog_main()Damjan Marion1-2/+2
2021-03-26vlib: introduce vlib_get_main_by_index(), vlib_get_n_threads()Damjan Marion3-6/+6
2021-02-08ping: fix aborting on keypressIvan Shvedunov2-7/+8
2021-01-21interface: rx queue infra rework, part oneDamjan Marion1-2/+2
2020-12-28vlib: add missing file template descriptionsPaul Vinciguerra1-1/+8
2020-12-14misc: move to new pool_foreach macrosDamjan Marion1-4/+4
2020-11-25vlib: add elog events for vlib log entriesDave Barach1-0/+5
2020-11-10ip6-nd: fix memory leaksDave Barach1-0/+1
2020-11-09vlib: support macros in initial config fileDave Barach1-15/+59
2020-10-21vlib: print logs to stderr if interactive or nosyslog setDamjan Marion3-2/+14
2020-10-19misc: don't export symbols from pluginsDamjan Marion1-1/+1
2020-10-15vlib: add cgo-friendly plugin registration supportDave Barach2-9/+128
2020-10-09vlib: save signal handler data to global vblsDave Barach1-4/+4
2020-10-01vlib: fix line-mode cli memory leakBenoît Ganne1-0/+1
2020-09-17vlib: map thread stack instead of allocating them from heapDamjan Marion1-10/+9
2020-09-03vlib: exit 0 (nocore) on SIGHUPChristian Hopps1-2/+2
2020-08-31vlib: extend telnet protocol guardVladimir Isaev1-1/+1
2020-07-16vlib: fix asan compilation with gccBenoît Ganne1-1/+1
2020-07-01vlib: wake up workers if interrupts are postedBenoît Ganne1-1/+2
2020-06-23vlib: debug CLI macro expander, part deuxDave Barach1-11/+34
2020-06-19vlib: add recursive macro expander to debug cliDave Barach1-1/+142
2020-06-16vlib: address sanitizer support for stack switch, enable clangDamjan Marion2-0/+4
2020-05-15vlib: restore commands for non-interactive sessionsBenoît Ganne1-8/+13
2020-05-15misc: removed executable bits from source filesRay Kinsella1-0/+0
2020-05-14vlib: fix unix cli commands crash without sessionBenoît Ganne1-15/+23
2020-05-02vlib: add nosyslog unix optionRuslan Babayev2-3/+12
2020-04-27vlib: deprecate i2c and cjDave Barach2-363/+0
2020-03-21vlib: leave SIGPROF signal with its default handlerJieqiang Wang1-0/+1
2020-03-12vlib: fix unix cli SIGSEGV for empty line inputFan Zhang1-1/+2
2020-03-11vlib: unix cli - log cli commands one per linePaul Vinciguerra1-0/+2
2020-02-11misc: fix coverity warningsDave Barach1-4/+6
2020-02-10misc: add FEATURE.yaml filesDave Barach1-0/+13
2020-02-06vlib: add plugin override supportDave Barach3-31/+185
2019-12-17misc: don't os_exit(1) causing core on SIGINTChristian E. Hopps1-1/+5
2019-12-17vlib: fix startup-config-process stack overflowGordonNoonan1-0/+1
2019-11-27vlib: add 'wait' cli commandPaul Vinciguerra1-0/+40
2019-10-28vlib: unix trivial- clean up typos in docsPaul Vinciguerra1-2/+2
2019-10-08vlib: fix cli process stack overflowChenmin Sun1-1/+1
2019-09-17vlib: fix cli process stack overflowAloys Augustin1-1/+1
2019-09-16vlib: cli support ctrl-w to erase left wordHiroki Shirokura1-0/+47
2019-08-20vlib: create unix runtime directoryOle Troan1-0/+5
2019-08-09stats: create /run/vpp before stat socket bind()YohanPipereau1-1/+1
2019-07-10vlib: Replace timer in CLI with an event processChris Luke1-16/+140
2019-06-11vlib: avoid retrieving freed file in epollFlorin Coras1-6/+7
2">" if [ "${#}" -ne "0" ]; then arr=(${@}) echo ${arr[0]} else rm -f *.deb VPP_STABLE_VER=$(cat ${SCRIPT_DIR}/VPP_STABLE_VER) VPP_REPO_URL=$(cat ${SCRIPT_DIR}/VPP_REPO_URL) wget -q "${VPP_REPO_URL}/vpp/${VPP_STABLE_VER}/vpp-${VPP_STABLE_VER}.deb" || exit wget -q "${VPP_REPO_URL}/vpp-dbg/${VPP_STABLE_VER}/vpp-dbg-${VPP_STABLE_VER}.deb" || exit wget -q "${VPP_REPO_URL}/vpp-dev/${VPP_STABLE_VER}/vpp-dev-${VPP_STABLE_VER}.deb" || exit wget -q "${VPP_REPO_URL}/vpp-dpdk-dev/${VPP_STABLE_VER}/vpp-dpdk-dev-${VPP_STABLE_VER}.deb" || exit wget -q "${VPP_REPO_URL}/vpp-dpdk-dkms/${VPP_STABLE_VER}/vpp-dpdk-dkms-${VPP_STABLE_VER}.deb" || exit wget -q "${VPP_REPO_URL}/vpp-lib/${VPP_STABLE_VER}/vpp-lib-${VPP_STABLE_VER}.deb" || exit fi VPP_DEBS=(*.deb) echo ${VPP_DEBS[@]} VIRL_DIR_LOC="/tmp" VPP_DEBS_FULL=(${VPP_DEBS[@]}) # Prepend directory location at remote host to deb file list for index in "${!VPP_DEBS_FULL[@]}"; do VPP_DEBS_FULL[${index}]=${VIRL_DIR_LOC}/${VPP_DEBS_FULL[${index}]} done echo "Updated file names: " ${VPP_DEBS_FULL[@]} cat ${VIRL_PKEY} # Copy the files to VIRL host scp ${SSH_OPTIONS} *.deb \ ${VIRL_USERNAME}@${VIRL_SERVER}:${VIRL_DIR_LOC}/ result=$? if [ "${result}" -ne "0" ]; then echo "Failed to copy vpp deb files to virl host" echo ${result} exit ${result} fi # Start a simulation on VIRL server echo "Starting simulation on VIRL server" function stop_virl_simulation { ssh ${SSH_OPTIONS} ${VIRL_USERNAME}@${VIRL_SERVER}\ "stop-testcase ${VIRL_SID}" } VIRL_SID=$(ssh ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER} \ "start-testcase -c double-ring-nested ${VPP_DEBS_FULL[@]}") retval=$? if [ "$?" -ne "0" ]; then echo "VIRL simulation start failed" exit ${retval} fi if [[ ! "${VIRL_SID}" =~ session-[a-zA-Z0-9_]{6} ]]; then echo "No VIRL session ID reported." exit 127 fi # Upon script exit, cleanup the simulation execution trap stop_virl_simulation EXIT echo ${VIRL_SID} ssh_do ${VIRL_USERNAME}@${VIRL_SERVER} cat /scratch/${VIRL_SID}/topology.yaml # Download the topology file from virl session scp ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER}:/scratch/${VIRL_SID}/topology.yaml \ topologies/enabled/topology.yaml retval=$? if [ "$?" -ne "0" ]; then echo "Failed to copy topology file from VIRL simulation" exit ${retval} fi virtualenv --system-site-packages env . env/bin/activate echo pip install pip install -r ${SCRIPT_DIR}/requirements.txt pykwalify -s ${SCRIPT_DIR}/resources/topology_schemas/3_node_topology.sch.yaml \ -s ${SCRIPT_DIR}/resources/topology_schemas/topology.sch.yaml \ -d ${SCRIPT_DIR}/topologies/enabled/topology.yaml \ -vvv if [ "$?" -ne "0" ]; then echo "Topology schema validation failed." echo "However, the tests will start." fi PYTHONPATH=`pwd` pybot -L TRACE -W 150\ -v TOPOLOGY_PATH:${SCRIPT_DIR}/topologies/enabled/topology.yaml \ --include vm_envAND3_node_single_link_topo \ --include vm_envAND3_node_double_link_topo \ --exclude PERFTEST \ --exclude SKIP_PATCH \ --noncritical EXPECTED_FAILING \ tests/