forked from scheib/bash-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
94 lines (94 loc) · 13.8 KB
/
aliases
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
alias aenv='. build/android/envsetup.sh'
alias agdb='CHROMIUM_OUT_DIR=outa/Debug adb_gdb_chrome_shell'
alias alc='adb logcat -v time chromium:v cr_Bluetooth:v AndroidRuntime:* Binder:w BtGatt.GattService:* BluetoothGatt:* BluetoothRemoteDevices:* bt_btif_config:* bt_btif:* bt_btif_dm:* bt_smp:* System.err:* DEBUG:* *:f | grep -Ei " |bluetooth|BluetoothGatt|bt_btif_config|BtGatt|cr_Bluetooth|error|fail|failed|failure"'
alias alcall='adb logcat -v time chromium:v cr_Bluetooth:v AndroidRuntime:* Binder:w System.err:* DEBUG:* | grep -Ei " |bluetooth|BluetoothGatt|bt_btif_config|BtGatt|cr_Bluetooth|error|fail|failed|failure"'
alias alcc="adb logcat -c && alc"
alias aliasupdate="alias-update"
alias alias-update=". $BASH_CONFIG_DIR/aliases"
alias android-command-line-flags='echo --enable-web-bluetooth --vmodule=*bluetooth*=7 --allow-file-access-from-files'
alias astack="adb logcat -d | CHROMIUM_OUT_DIR=outa/Debug third_party/android_platform/development/scripts/stack"
alias b2='hr; time autoninja -C out2/Release chrome && r2 || notify-fail'
alias bacontent-shell='hr; time CHROMIUM_OUT_DIR=outa/Debug autoninja -C outa/Debug content_shell_apk || notify-fail'
alias baf='hr; time autoninja -C outa/Debug chrome_public_apk && daf || notify-fail'
alias ball2='hr; time autoninja -C out2/Release blink_tests chrome components_unittests content_unittests content_browsertests device_unittests unit_tests browser_tests || notify-fail'
alias balld2='hr; time autoninja -C out2/Debug blink_tests chrome components_unittests content_unittests content_browsertests device_unittests unit_tests browser_tests || notify-fail'
alias balld='hr; time autoninja -C out/Debug blink_tests chrome components_unittests content_unittests content_browsertests device_unittests unit_tests browser_tests || notify-fail'
alias ball='hr; time autoninja -C out/Release blink_tests chrome components_unittests content_unittests content_browsertests device_unittests unit_tests browser_tests || notify-fail'
alias ba='hr; time autoninja -C outa/Debug chrome_public_apk_incremental && da || notify-fail'
alias bblink-layout-d-='hr; time autoninja -C out/Debug blink_tests && blink/tools/run_layout_tests.sh --no-retry-failures --time-out-ms=2000 --debug bluetooth && notify'
alias bblink-layout-pointerlockfullscreen='hr; time autoninja -C out/Release blink_tests && blink/tools/run_layout_tests.sh --no-retry-failures --time-out-ms=2000 pointer-lock http/tests/pointer-lock fullscreen http/tests/fullscreen fast/dom/navigator-detached-no-crash.html && notify'
alias bblink-layout-single-requestDevice-='hr; time autoninja -C out/Release blink_tests && /usr/local/google/home/scheib/c/src/out/Release/content_shell --run-layout-test /usr/local/google/home/scheib/c/src/third_party/WebKit/LayoutTests/bluetooth/requestDevice.html'
alias bblink-layout-='hr; time autoninja -C out/Release blink_tests && blink/tools/run_layout_tests.sh --no-retry-failures --time-out-ms=2000 bluetooth && notify'
alias bbt-bluetooth-internals='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*BluetoothInternals*" || notify-fail'
alias bbt-bluetooth='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*Bluetooth*" || notify-fail'
alias bbtd-ExtensionServiceWorkerBrowserTest-SendOnLaunched='hr; time autoninja -C out/Debug browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/browser_tests --gtest_filter="*ExtensionServiceWorkerBrowserTest*SendOnLaunched*" --gtest_also_run_disabled_tests || notify-fail'
alias bbtd-ExtensionServiceWorkerBrowserTest='hr; time autoninja -C out/Debug browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/browser_tests --gtest_filter="*ExtensionServiceWorkerBrowserTest*" --single_process || notify-fail'
alias bbtd-fs='hr; time autoninja -C out/Debug browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/browser_tests --gtest_filter="*Fullscreen*:*FullScreen*:*Presentation*:*MouseLock*:*PointerLock*" || notify-fail'
alias bbtd-='hr; time autoninja -C out/Debug browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/browser_tests --gtest_filter="*xxx*" || notify-fail'
alias bbt-ExtensionServiceWorkerBrowserTest-SendOnLaunched='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*ExtensionServiceWorkerBrowserTest*SendOnLaunched*" --gtest_also_run_disabled_tests || notify-fail'
alias bbt-ExtensionServiceWorkerBrowserTest='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*ExtensionServiceWorkerBrowserTest*" || notify-fail'
alias bbt-sw='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*ServiceWorker*" || notify-fail'
alias bbt-='hr; time autoninja -C out/Release browser_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter="*xxx*" || notify-fail'
alias bcbtd-sw='hr; time autoninja -C out/Debug content_browsertests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/content_browsertests --gtest_filter="*ServiceWorker*:*EmbeddedWorker*" || notify-fail'
alias bcbt-sw='hr; time autoninja -C out/Release content_browsertests && xvfb-run -s "-screen 0 1024x768x24" out/Release/content_browsertests --gtest_filter="*ServiceWorker*:*EmbeddedWorker*" || notify-fail'
alias bclank='hr; time autoninja -C out/Debug chrome_public_apk || notify-fail'
alias bcmut-bt-='hr; time autoninja -C out/Release components_unittests && out/Release/components_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bcmut-='hr; time autoninja -C out/Release components_unittests && out/Release/components_unittests --gtest_filter="*" || notify-fail'
alias bcnut-bt-='hr; time autoninja -C out/Release content_unittests && xvfb-run -s "-screen 0 1024x768x24" out/Release/content_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bcnut-='hr; time autoninja -C out/Release content_unittests && xvfb-run -s "-screen 0 1024x768x24" out/Release/content_unittests --gtest_filter="*" || notify-fail'
alias bctd='hr; time autoninja -C out/Debug content_unittests && out/Debug/content_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bct='hr; time autoninja -C out/Release content_unittests && out/Release/content_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bd2='hr; time autoninja -C out2/Debug chrome && rd2 || notify-fail'
alias bd='hr; time autoninja -C out/Debug chrome && rd || notify-fail'
alias bdutar='hr; time CHROMIUM_OUT_DIR=outa/Release autoninja -C outa/Release device_unittests device_unittests_apk && CHROMIUM_OUT_DIR=outa/Release build/android/test_runner.py gtest -t 5 -s device_unittests --gtest_filter="*" -t 5 --num_retries 0 --release; notify'
alias bduta='hr; time autoninja -C outa/Debug device_unittests && CHROMIUM_OUT_DIR=outa build/android/test_runner.py gtest -t 5 -s device_unittests --gtest_filter="*" --num_retries 0 || notify-fail'
alias bdutd='hr; time autoninja -C out/Debug device_unittests && out/Debug/device_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bdut='hr; time autoninja -C out/Release device_unittests && out/Release/device_unittests --gtest_filter="*Bluetooth*" || notify-fail'
alias bit-disabled-state='hr; time autoninja -C out/Release interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/interactive_ui_tests --gtest_filter="FullscreenControllerStateInteractiveTest*STATE*" --gtest_also_run_disabled_tests || notify-fail'
alias bitd='hr; time autoninja -C out/Debug interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/interactive_ui_tests --gtest_filter="*Fullscreen*:*FullScreen*:*Presentation*:*MouseLock*:*PointerLock*" || notify-fail'
alias bit--='hr; time autoninja -C out/Release interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/interactive_ui_tests --gtest_filter="FullscreenControllerStateInteractiveTest.DISABLED_TabToggle" --gtest_also_run_disabled_tests || notify-fail'
alias bit-='hr; time autoninja -C out/Release interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/interactive_ui_tests --gtest_filter="FullscreenControllerStateInteractiveTest.*" || notify-fail'
alias bit='hr; time autoninja -C out/Release interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/interactive_ui_tests --gtest_filter="*Fullscreen*:*FullScreen*:*Presentation*:*MouseLock*:*PointerLock*" || notify-fail'
alias bit-TransitionsForEachState='hr; time autoninja -C out/Release interactive_ui_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/interactive_ui_tests --gtest_filter="FullscreenControllerStateInteractiveTest.DISABLED_TransitionsForEachState" --gtest_also_run_disabled_tests || notify-fail'
alias bswall='ball && bcut-sw && bcbt-sw && but-sw && bbt-sw && echo "bswall test suites ran OK." || notify-fail'
alias b='hr; time autoninja -C out/Release chrome && r || notify-fail'
alias butd='hr; time autoninja -C out/Debug unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Debug/unit_tests --gtest_filter="*Fullscreen*:*FullScreen*:*Presentation*:*MouseLock*:*PointerLock*" || notify-fail'
alias but-fs-DebugLogStateTables='hr; time autoninja -C out/Release unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/unit_tests --gtest_filter="*DebugLogStateTables*" --gtest_also_run_disabled_tests || notify-fail'
alias but-fs-state='hr; time autoninja -C out/Release unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/unit_tests --gtest_filter="*STATE*" --gtest_also_run_disabled_tests || notify-fail'
alias but-fs='hr; time autoninja -C out/Release unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/unit_tests --gtest_filter="*Fullscreen*:*FullScreen*:*Presentation*:*MouseLock*:*PointerLock*" || notify-fail'
alias but-fs-transitions-for-each-state='hr; time autoninja -C out/Release unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/unit_tests --gtest_filter="*TransitionsForEachState*" --gtest_also_run_disabled_tests || notify-fail'
alias but-sw='hr; time autoninja -C out/Release unit_tests && xvfb-run -s "-screen 0 1024x768x24" out/Release/unit_tests --gtest_filter="*ServiceWorker*:*ManifestTest*:*ExtensionComplexFeatureTest*:*EventListener*:*EventRouterTest*" || notify-fail'
alias clang-off='unset CC CXX'
alias clang-on='export CC=clang; export CXX=clang++; echo $PATH | grep -q "llvm-build/Release+Asserts" || export PATH=~/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PATH'
alias containerissues='pushd src/py_issue_tracker/src && (./crbugtotrix.py -q Cr:Platform-Apps-Container --no-closed-bugs -s 0Ah8PJXs-5E92dEZ0dmdqbmw1c0FMTXUtMEhHNHZ5cVE; popd)'
alias da='CHROMIUM_OUT_DIR=outa/Debug outa/Debug/bin/chrome_public_apk install --incremental -v || notify-fail'
alias daf='CHROMIUM_OUT_DIR=outa/Debug build/android/adb_install_apk.py --apk ChromePublic.apk --debug || notify-fail'
alias dclank='build/android/adb_install_apk.py --apk ChromePublic.apk --debug || notify-fail'
alias g2='GYP_GENERATOR_FLAGS="output_dir=out2" GYP_DEFINES="use_goma=1 clang=1 component=shared_library dcheck_always_on=1 chromeos=0" gclient runhooks'
alias gasand='GYP_GENERATORS=ninja build/gyp_chromium -D asan=1 -D linux_use_tcmalloc=0 -D release_extra_cflags="-g" -D clang=1'
alias gasan='GYP_GENERATORS=ninja build/gyp_chromium -D asan=1 -D linux_use_tcmalloc=0 -D release_extra_cflags="-g" -D clang=1'
alias gdb-browser2='gdb -tui -ex=r --args out2/Debug/chrome --disable-seccomp-sandbox'
alias gdb-browser='gdb -tui -ex=r --args out/Debug/chrome --disable-seccomp-sandbox'
alias gdb-index2='./build/gdb-add-index ./out2/Debug/chrome && ldd -d ./out2/Debug/chrome | grep "out2/Debug/.*\.so" | cut -d ">" -f2 | cut -d " " -f2 | xargs -n1 ./build/gdb-add-index && notify'
alias gdb-index='./build/gdb-add-index ./out/Debug/chrome && ldd -d ./out/Debug/chrome | grep "out/Debug/.*\.so" | cut -d ">" -f2 | cut -d " " -f2 | xargs -n1 ./build/gdb-add-index && notify'
alias g='gclient runhooks'
alias gsync='GYP_CHROMIUM_NO_ACTION=1 gclient sync -D'
alias hr='echo "$(tput setab 2; tput bold)============================================================================================================================================================================$(tput sgr 0)"'
alias lupdate='git branch -D lkgr 1>/dev/null 2&>1; git lkgr | xargs git branch -f lkgr'
alias ma='my_activity.py --output-format=" - [\"{title}\"]({url})" --output-format-heading="- {heading}"'
alias mount-tmpfs-out='sudo mount -t tmpfs -o size=50% tmpfs out'
alias n='notify'
alias notify-fail='(notify-send -i $BASH_CONFIG_DIR/icons/red.png "FAIL"; paplay /usr/share/sounds/freedesktop/stereo/complete.oga; exit 1)'
alias notify-ok='(notify-send -i $BASH_CONFIG_DIR/icons/green.png "OK"; paplay /usr/share/sounds/freedesktop/stereo/message.oga; exit 0)'
alias notify='test $? -eq 0 && notify-ok || notify-fail'
alias p="pushd +1"
alias r2='if [ -e out2/Release/chrome ]; then out2/Release/chrome `run-flags`; else out2/Release/Chromium.app/Contents/MacOS/Chromium; fi'
alias ra='adb_chrome_public_command_line `android-command-line-flags` && build/android/adb_run_chrome_public'
alias racontent-shell='adb_content_shell_command_line `android-command-line-flags` && build/android/adb_run_content_shell'
alias rd2='if [ -e out2/Debug/chrome ]; then out2/Debug/chrome `run-flags`; else out2/Debug/Chromium.app/Contents/MacOS/Chromium; fi'
alias rd='if [ -e out/Debug/chrome ]; then out/Debug/chrome `run-flags`; else out/Debug/Chromium.app/Contents/MacOS/Chromium; fi'
alias r='if [ -e out/Release/chrome ]; then out/Release/chrome `run-flags`; else out/Release/Chromium.app/Contents/MacOS/Chromium; fi'
alias run-flags='echo --enable-experimental-web-platform-features --enable-web-bluetooth --vmodule=*bluetooth*=7'
alias st='/opt/sublime_text/sublime_text'
alias vsmulti='while read x; do vs $x; done'
alias www-permissions='~/scheib/www/permisions.sh'